package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PageBean;
import com.sky.entity.Employee;

import java.util.concurrent.ThreadPoolExecutor;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    /**
     * 新增员工
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询员工信息
     *
     */
    PageBean page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用和禁用员工账号
     * @param status
     * @param id
     */
    void startOrStop(Integer status, long id);

    Employee selectId(Long id);


    void updateEmp(EmployeeDTO employeeDTO);
}
